package javaee;

import java.math.BigDecimal;

import javax.validation.constraints.AssertFalse;
import javax.validation.constraints.DecimalMin;

public class BeanValidation {

	public static void main(String[] args) {
		A a=new A();
		a.setBig(BigDecimal.ZERO);
		a.setBool(true);
		System.out.println(a.getBig());
	}

}
class A{
	@DecimalMin("2.00")
	private BigDecimal big;
	@AssertFalse
	private Boolean bool;
	public BigDecimal getBig() {
		return big;
	}
	public void setBig(BigDecimal big) {
		this.big = big;
	}
	public Boolean getBool() {
		return bool;
	}
	public void setBool(Boolean bool) {
		this.bool = bool;
	}
}
